function textToArr(str, separator) {
  console.log(str.split(separator));
}

const TextToArr = currying(textToArr)("-");

console.log(TextToArr("a-b"));